import request from "@/utils/request";
import { object_Inf } from "@/utils/typings/index.type";

/**
 * @Author: xzh
 * @Descripttion:Dashboard 异常管理接口类
 * @Param:
 */
export default class abnormalManage_APi {
  //#region 模具异常
  /**
   * @Author: xzh
   * @Descripttion: 获取模具异常列表
   * @Param:
   */
  static getMoldAbnormalList = (
    data: object_Inf = {
      keyword: "",
    }
  ): Promise<object_Inf> =>
    request({
      url: "/api/MouldAbnormal/GetMouldAbnormalList",
      method: "post",
      data,
      headers: { "Content-Type": "application/json;charset=UTF-8" },
    });
  //#endregion

  //#region 设备异常
  /**
   * @Author: xzh
   * @Descripttion: 获取设备异常列表
   * @Param:
   */
  static getEquipAbnormalList = (
    data: object_Inf = {
      keyword: "",
    }
  ): Promise<object_Inf> =>
    request({
      url: "/api/EquipmentAbnormal/GetEquipmentAbnormalList",
      method: "post",
      data,
      headers: { "Content-Type": "application/json;charset=UTF-8" },
    });
  //#endregion

  //#region 产出量异常
  /**
   * @Author: xzh
   * @Descripttion: 获取产出量异常列表
   * @Param:
   */
  static getOutputAbnormalList = (
    data: object_Inf = {
      keyword: "",
    }
  ): Promise<object_Inf> =>
    request({
      url: "/api/ProductionOutputAbnormal/GetProductionOutputAbnormalList",
      method: "post",
      data,
      headers: { "Content-Type": "application/json;charset=UTF-8" },
    });
  //#endregion
}
